

<template>
    <div id="tab">
        <router-link tag="div" class="tab-item" to="/goods">
            <span class="tab-link">商品</span>
        </router-link>
        <router-link tag="div" class="tab-item" to="/ratings">
            <span class="tab-link">评论</span>
        </router-link>
        <router-link tag="div" class="tab-item" to="/seller">
            <span class="tab-link">商家</span>
        </router-link>
    </div>
</template>



<script>

export default {

}

</script>




<style scoped lang="stylus" rel="stylesheet/stylus">
    @import '~common/stylus/mixin.stylus';

    #tab{
        display: flex;
        width: 100%;
        height: 40px;
        line-height: 40px;
        border-1px(rgba(7,17,27,0.1));
        .tab-item{
            flex: 1;
            text-align: center;
            font-size: 14px;
            color: rgb(77,85,93);
            &.router-link-active{
                color: rgb(240,20,20);
            }
        }
    }

</style>




